{include file="public/header"}
<title>首页</title>
    <style>
        body{
            width:100%;
            height:100%;
            margin:0;
            padding:0;
            background-color: #F7F7F7  ;
            position: relative;
        }
        .top{
            height: 60px;
            width: 100%;
            background:rgba(0,0,0,0.4);
            position: absolute;
            top: 0;
            left: 0;

            z-index: 2;
        }
        .top_box{
            width: 1200px;
            height: 100%;
            margin: 0 auto;
            align-items: center;

        }
        .top_name_left{
            width:38px;
            height:38px;
            background:rgba(52,99,230,1);
            border-radius:10px;
            margin-right: 10px;
        }
        .top_name{
            height:60px;
            font-size:24px;
            font-family:PingFangSC-Medium;
            font-weight:500;
            color:rgba(255,255,255,1);
            line-height:60px;
        }
        .top_name_r{
            width:76px;
            height:30px;
            border-radius:15px;
            border:1px solid rgba(255,255,255,1);
            margin-left:26px;
            align-items: center;
            justify-content: center;
            display: flex;
        }
        .top_name_r img{
            height: 16px;
            width: 16px;
        }
        .top_name_r span{
            height:22px;
            line-height: 22px;
            font-size:16px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(255,255,255,1);
            margin-left: 3px;
        }
        .lii{
            height:22px;
            font-size:16px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(255,255,255,1);
            line-height:22px;
            margin-right: 24px;
        }
        .top_login{
            margin-left: 36px;
            display: flex;
            align-items: center;
        }
        .top_login img{
            width: 28px;
            height: 28px;
        }
        .top_login span{
            height:22px;
            font-size:16px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(255,255,255,1);
            line-height:22px;
            margin-left: 8px;
        }
        .swiper{
            width: 100%;
            height: 460px;
            background-color: #fff;
        }

        .swiper_search{
            position: absolute;
            top: 300px;
            left: 0;
            right: 0;
            margin: 0 auto;
            width:743px;
            height:50px;
            background:rgba(255,255,255,1);
            border-radius:4px;
            display: flex;
            align-items: center;
            z-index: 2;
        }
        .swiper_click{
            height: 100%;
            padding-left: 26px;
            display: flex;
            align-items: center;
        }
        .swiper_click:hover{
            cursor: pointer;
        }
        .swiper_click span{
            height:22px;
            font-size:16px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(51,51,51,1);
            line-height:22px;
        }
        .swiper_click img{
            height:16px;
            width: 16px;
            margin-right: 16px;
        }

        .input_class{
            height: 30px;
            padding-left: 20px;
            border-left: 1px  solid #E6E4E4;
            line-height: 30px;
            font-size:16px;
            font-weight:400;
            outline:none;
        }
        input::-webkit-input-placeholder{
            font-size:16px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(153,153,153,1);
        }
        .swiper_s{
            width:77px;
            height:50px;
            background:rgba(52,99,230,1);
            border-radius:0px 4px 4px 0px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .swiper_s img{
            height: 18px;
            width: 18px;

        }
        .choice_outer{
            width: 100%;
            background-color: #fff;
            padding-bottom: 60px;
        }
        .choice{
            width: 1200px;
            margin: 0 auto;

        }
        .choice_name{
            height:50px;
            font-size:36px;
            font-family:PingFangSC-Medium;
            font-weight:500;
            color:rgba(51,51,51,1);
            line-height:50px;
            margin-bottom: 20px;
        }
        .card{
            width:285px;
            height:331px;
            background:rgba(255,255,255,1);
            box-shadow:0px 2px 6px 0px rgba(0,0,0,0.06);
            border-radius:4px;
            margin-right: 20px;
            cursor: pointer;
        }

        .card img{
            width: 100%;
            height: 213px;
            border-radius:4px 4px 0 0;object-fit: cover;
        }
        .card_word{
            width:257px;
            height:48px;
            font-size:16px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(51,51,51,1);
            line-height:24px;
            margin: 20px 14px 6px;
            overflow: hidden;
        }
        .card_word2{
            height:24px;
        }
        .hot{
            width:20px;
            height:20px;
            background:rgba(240,143,94,1);
            border-radius:2px;
            font-size:12px;
            font-weight:400;
            color:rgba(255,255,255,1);
            line-height:20px;
            text-align: center;
            margin-right:5px;
        }
        .card_add{
            display: flex;
            align-items: center;
            margin: 0 14px;
        }
        .card_add_word{
            height:30px;
            font-size:14px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(153,153,153,1);
            line-height:30px;
            margin-right: 10px;
        }
        .card_add_num{
            height:24px;
            font-size:16px;
            font-family:Helvetica-Bold;
            font-weight:bold;
            color:rgba(231,99,76,1);
            line-height:24px;
        }
        .choice_four{
            width:285px;
            height:106px;
            border-radius:4px;
            margin-right: 20px;
            cursor: pointer;
        }
        .choice_four_1{
            background: url('__IMG__/card1.png') no-repeat center center;
            background-size:285px 106px;
        }
        .choice_four_2{
            background: url('__IMG__/card2.png') no-repeat center center;
            background-size:285px 106px;
        }
        .choice_four_3{
            background: url('__IMG__/card3.png') no-repeat center center;
            background-size:285px 106px;
        }
        .choice_four_4{
            background: url('__IMG__/card4.png') no-repeat center center;
            background-size:285px 106px;
            margin-right: 0px;
        }
        .choice_four_title{
            height:28px;
            font-size:20px;
            font-family:PingFangSC-Medium;
            font-weight:500;
            color:rgba(255,255,255,1);
            line-height:28px;
            margin-left:16px;
            padding-top: 20px;

        }
        .choice_four_con{
            height:20px;
            font-size:14px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(255,255,255,1);
            line-height:20px;
            margin: 4px 0 0 16px;
        }
        .contents{
            width: 1200px;
            margin: 0 auto;
        }
        .contents_title{
            margin-top: 80px;
            margin-bottom: 20px;
            align-items: flex-end;
        }
        .contents_title_font{
            height:50px;
            font-size:36px;
            font-family:PingFangSC-Medium;
            font-weight:500;
            color:rgba(51,51,51,1);
            line-height:50px;
        }
        .contents_title_more{
            height:22px;
            font-size:16px;
            font-family:PingFangSC-Medium;
            font-weight:500;
            color:rgba(52,99,230,1);
            line-height:22px;
            cursor: pointer;
        }
        .contents_marginbottom{
            margin-bottom: 80px;
        }
        .footer{
            width:100%;
            height:130px;
            background:rgba(31,31,31,1);
            display: flex;
            align-items: center;
        }
        .footer_in{
            width: 1210px;
            margin: 0 auto;
            height:18px;
            font-size:13px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(153,153,153,1);
            line-height:18px;
        }
        .swiper-containerr{
            height: 390px;
            width: 100%;
        }
        .swiper-slide-img{
            width: 100%;
            height: 390px;
        }
        .swiper-pagination{
            left: 0;
            right: 0;
            margin: 16px auto;
        }
        .swiper-pagination-bullet{
            width: 26px;
            height: 4px;
            background-color: #D8D8D8;
            border-radius:4px;
            margin-right: 10px;
        }
        .swiper-pagination-bullet-active{
            width: 26px;
            height: 4px;
            background-color: #3463E6;
            border-radius:4px;
        }
        .swiper-containerrr{
            height: 360px;
            width: 1220px;
        }
        .overhidden{
            overflow: hidden;
            height: 360px;
            width: 1210px;
        }
        .card:hover{
            box-shadow:0px 10px 20px 0px rgba(0,0,0,0.08);
        }
        .bgc{
            background-color: red;
            height: 100%;
            width: 100%;
        }
        .footer2{
            width:100%;
            height:168px;
            background:rgba(255,255,255,1);
            box-shadow:0px -8px 20px 0px rgba(0,0,0,0.04);
            position: absolute;
            bottom: 0px;
            left: 0;
        }
        .footerint{
            width: 1200px;
            height: 100%;
            margin: 0 auto;
            position: relative;
        }
        .footer_word{
            padding-top: 20px;
            padding-left: 268px;
        }
        .footer_word span{
            width:420px;
            height:68px;
            font-size:22px;
            font-family:PingFangSC-Medium;
            font-weight:500;
            color:rgba(51,51,51,1);
            line-height:34px;
            margin-bottom: 25px;
        }
        .footer_js{
            height:21px;
            font-size:15px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(153,153,153,1);
            line-height:21px;
            margin-right: 25px;
        }
        .footer_ma{
            width: 120px;
            height: 120px;
            padding-top: 25px;
            padding-right: 75px;
        }
        .footer_ma img{
            width: 100%;
            height: 100%;
        }
        .footer_phone{
            width: 145px;
            height: 200px;
            position: absolute;
            bottom: 0;
            left: 94px;
            box-shadow:0px 18px 20px 0px rgba(0,0,0,0.08);
        }
        .footer_phone img{
            width: 100%;
            height: 100%;
        }
        .footer_del{
            width: 16px;
            height: 16px;
            position: absolute;
            top: 17px;
            right: 3px;
        }
        .footer_del img{
            width: 100%;
            height: 100%;
        }
        .drop{
            width: 90px;
            height: 81px;
            background-color: #fff;
            box-shadow:0px 2px 8px 0px rgba(0,0,0,0.15);
            border-radius:4px;
            position: absolute;;
            top: 50px;
            left: 0;
            font-size:14px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(51,51,51,1);
        }

        .drop_1{
            width:100%;
            height:40px;
            background:rgba(255,255,255,1);
            border-radius:3px 3px 0px 0px;
            line-height:41px;
            text-align: center;
        }
        .drop_1:hover{
            background:rgba(239,239,236,1);
            cursor: pointer;
        }

        .swiper-button-prev{
            height: 40px;
            width: 40px;
            background:rgba(0,0,0,0.4);
            border-radius:0px 4px 4px 0px;
            left: 0;
            top: 107px;
        }
        .swiper-button-prev::after{
            content: ' ';
            height: 22px;
            width: 22px;
            position: absolute;
            left: calc(50% - 11px);
            top: calc(50% - 11px);
            background: url('__IMG__/back_left.png') no-repeat center center;
            background-size:22px 22px;
        }
        .swiper-button-next{
            height: 40px;
            width: 40px;
            background:rgba(0,0,0,0.4);
            border-radius: 4px 0px 0px 4px;
            right: 20px;
            top: 107px;
        }
        .swiper-button-next::after{
            content: ' ';
            height: 22px;
            width: 22px;
            position: absolute;
            left: calc(50% - 11px);
            top: calc(50% - 11px);
            background: url('__IMG__/back_right.png') no-repeat center center;
            background-size:22px 22px;
        }
        .hidden{
            display: none;
        }
        /*二期*/
        .labelll{
            position: absolute;
            top:0;
            left:0;
            padding-left: 12px;
            padding-right:12px;
            height:30px;
            background:rgba(235,188,87,1);
            border-radius:4px 0px 4px 0px;
            font-size:14px;
            font-weight:400;
            color:rgba(255,255,255,1);
            line-height:30px;
            align-items: center;
        }
        .hloge{
            width:14px;
            height:14px;
            margin-right:3px;
        }
        .lImg{
            width:285px;
            height:213px;
        }
        .sname{
            font-size:16px;
            font-weight:400;
            color:rgba(51,51,51,1);
            align-items: center;
            margin-top:17px;
            margin-bottom:8px;
        }
        .sLabel{
            width:38px;
            height:20px;
            background:rgba(106,182,144,1);
            border-radius:2px;
            font-size:12px;
            font-weight:400;
            color:rgba(255,255,255,1);
            text-align: center;
            line-height: 20px;
        }
        .saddr{
            font-size:14px;
            font-weight:400;
            color:rgba(153,153,153,1);
            margin-bottom:6px;
        }
        .sintro{
            font-size:14px;
            font-weight:400;
            color:rgba(153,153,153,1);
            margin-bottom:8px;
        }
        /*这里有个hot，放上面了*/
        .price{
            font-size:12px;
            font-weight:400;
            color:rgba(231,99,76,1);
        }
        .price1{
            font-size:16px;
        }
        .sintro1{
            font-size:14px;
            font-weight:400;
            color:rgba(102,102,102,1);
        }
    </style>
<body>
<div class="swiper">
    <div class="swiper-container swiper-containerr"  id="swiper1">
        <div class="swiper-wrapper">
            {volist name='lb' id='l'}
            <div class="swiper-slide" data-id="{$l.lb_content}" onclick="gotypewhere({$l.lb_where},{$l.lb_content});"><img src="{$l.lb_image}" alt="" class="swiper-slide-img"></div>
            {/volist}
        </div>
    </div>
    <!-- 如果需要分页器 -->
    <div class="swiper-pagination"></div>

    <div class="swiper_search">
        <div class="swiper_click" onclick="changeSearch()">
            <span id="tabSearch">出售</span>
            <img src="__IMG__/pgdn.png" alt="" id="tabImage">
            <!-- <img src="__IMG__/pgup.png" alt=""> -->
        </div>
        <input type="text" name="" value="" class="flex-con input_class" placeholder="请输入您要搜索的内容">
        <div class="swiper_s searchGo">
            <img src="__IMG__/search.png" alt="">
        </div>

        <div class="drop hidden" id="drop">
            <div class="drop_1" onclick="searchSelect(1)">
                出租
            </div>
            <div class="drop_1" onclick="searchSelect(2)">
                出售
            </div>
            <div class="drop_1" onclick="searchSelect(3)">
                小区
            </div>
        </div>
    </div>
</div>
<div class="choice_outer">
    <div class="choice">
        <div class="choice_name">
            精选房源 真房源品质推荐
        </div>
        <div class="overhidden">


            <div class="swiper-container swiper-containerrr" id="swiper2">
                <div class="swiper-wrapper">
                    {volist name='top' id='t'}
                    <div class="swiper-slide cardss" onclick="godetail({$t.h_id});">
                        <div class="card">
                            <img src="{$t.h_img}" alt="">
                            <div class="card_word {if $t.h_hot_title}card_word2{/if}">
                                {$t.h_title}
                            </div>
                            <div class="card_add flex-wrap">
                                <div class="card_add_word">
                                    {$t.h_xiaoqu}
                                </div>
                                <div class="card_add_word">
                                    {$t.h_shis}室{$t.h_tings}厅
                                </div>
                                <div class="flex-con"></div>
                                <div class="card_add_num">
                                    {if $t.h_type == 1}
                                    {$t.h_price}/月
                                    {else /}
                                    {$t.h_price}万
                                    {/if}

                                </div>
                            </div>
                            {if $t.h_hot_title}
                            <div class="card_add flex-wrap">
                                <div class=" hot">热</div>
                                <div class="card_add_word">
                                    {$t.h_hot_title}
                                </div>
                            </div>
                            {/if}
                        </div>
                    </div>
                    {/volist}
                </div>
                <div class="swiper-button-prev"></div><!--左箭头-->
                <div class="swiper-button-next"></div><!--右箭头-->
            </div>
        </div>
        <div class="flex-wrap">
            <div class="choice_four choice_four_1" onclick="location.href='/home/Index/four?sign=8';">
                <div class="choice_four_title">
                    急售
                </div>
                <div class="choice_four_con">
                    好房等你来抢
                </div>
            </div>
            <div class="choice_four choice_four_2" onclick="location.href='/home/Index/four?sign=4';">
                <div class="choice_four_title">
                    学区房
                </div>
                <div class="choice_four_con">
                    配套齐全升值保障
                </div>
            </div>
            <div class="choice_four choice_four_3" onclick="location.href='/home/Index/four?sign=9';">
                <div class="choice_four_title">
                    婚房
                </div>
                <div class="choice_four_con">
                    好事成双必选
                </div>
            </div>
            <div class="choice_four choice_four_4" onclick="location.href='/home/Index/four?sign=5';">
                <div class="choice_four_title">
                    低首付
                </div>
                <div class="choice_four_con">
                    低到想不到
                </div>
            </div>
        </div>
    </div>
</div>
<div class="contents">
    <div class="contents_title flex-wrap">
        <div class="contents_title_font">
            二手房推荐 热推急售抢先看
        </div>
        <div class="flex-con"></div>
        <div class="contents_title_more" onclick="location.href='{:url('home/Lister/homePage')}'">
            查看更多
        </div>
    </div>
    <div class="flex-wrap">
        {volist name='er' id='e'}
        <div class="card" onclick="godetail({$e.h_id});">
            <img src="{$e.h_img}" alt="">
            <div class="card_word {if $e.h_hot_title}card_word2{/if}">
                {$e.h_title}
            </div>
            <div class="card_add flex-wrap">
                <div class="card_add_word">
                    {$e.h_xiaoqu}
                </div>
                <div class="card_add_word">
                    {$e.h_shis}室{$e.h_tings}厅
                </div>
                <div class="flex-con"></div>
                <div class="card_add_num">
                    {$e.h_price}万
                </div>
            </div>
            {if $e.h_hot_title}
            <div class="card_add flex-wrap">
                <div class=" hot">热</div>
                <div class="card_add_word">
                    {$e.h_hot_title}
                </div>
            </div>
            {/if}
        </div>
        {/volist}
    </div>
</div>
<div class="contents contents_marginbottom">
    <div class="contents_title flex-wrap">
        <div class="contents_title_font">
            新发布房源 甄选高性价比
        </div>
        <div class="flex-con"></div>
        <div class="contents_title_more" onclick="location.href='{:url('home/Index/allNerHouses')}'">
            查看更多
        </div>
    </div>
    <div class="flex-wrap">
        {volist name='new' id='n'}
        <div class="card" onclick="godetail({$n.h_id});">
            <img src="{$n.h_img}" alt="">
            <div class="card_word {if $n.h_hot_title}card_word2{/if}">
                {$n.h_title}
            </div>
            <div class="card_add flex-wrap">
                <div class="card_add_word">
                    {$n.h_xiaoqu}
                </div>
                <div class="card_add_word">
                    {$n.h_shis}室{$n.h_tings}厅
                </div>
                <div class="flex-con"></div>
                <div class="card_add_num">
                    {if $n.h_type == 1}
                    {$n.h_price}/月
                    {else /}
                    {$n.h_price}万
                    {/if}
                </div>
            </div>
            {if $n.h_hot_title}
            <div class="card_add flex-wrap">
                <div class="hot">热</div>
                <div class="card_add_word">
                    {$n.h_hot_title}
                </div>
            </div>
            {/if}
        </div>
        {/volist}
    </div>
</div>

<div class="contents contents_marginbottom">
    <div class="contents_title flex-wrap">
        <div class="contents_title_font">
            新楼盘房源 甄选高性价比
        </div>
        <div class="flex-con"></div>
        <div class="contents_title_more" onclick="location.href='{:url('home/Build/homePage')}'">
            查看更多
        </div>
    </div>
    <div class="flex-wrap">
        {volist name='builds' id='n'}
        <div class="card" style="height: 361px;position: relative;display: inline-block;" onclick="gobuilddetail({$n.b_id});">
            <div class="labelll flex-wrap">
                <img src="__IMG__/hloge.png" class="hloge" style="width: 14px;height: 14px;margin-right:3px;">
                <div>{$n.b_title_bottom}</div>
            </div>
            <img src="{$n.b_img}" class="lImg">
            <div style="margin:0 14px">
                <div class="sname flex-wrap">
                    <div class="flex-con">{$n.b_title}</div>
                    {if $n.b_is_sale==1}
                    <div class="sLabel">在售</div>
                    {/if}
                </div>
                <div class="saddr">{$n.b_address ?: '暂无地址'}</div>
                <div class="sintro">{$n.b_huxing}&nbsp;&nbsp;{$n.b_mianji_min}-{$n.b_mianji_max}m²</div>
                <div class="flex-wrap">
                    <div class="hot">热</div>
                    <div class="flex-con sintro1">{$n.b_hot_title}</div>
                    <div class="price">均价<span class="price1">{$n.b_unit_price}元/㎡</span></div>
                </div>
            </div>
        </div>
        {/volist}
    </div>
</div>
<div class="contents contents_marginbottom">
    <div class="contents_title flex-wrap">
        <div class="contents_title_font">
            推荐装修公司 甄选高性价比
        </div>
        <div class="flex-con"></div>
        <div class="contents_title_more" onclick="location.href='{:url('home/Renovation/index')}'">
            查看更多
        </div>
    </div>
    <div class="flex-wrap">
        {volist name='coms' id='n'}
        <div class="card" style="height: 300px;"  onclick="location.href='{:url('home/Renovation/detail')}?id={$n['id']}'">
            <img src="{$n.thumb}" alt="">
            <div class="card_word card_word2" style="margin-top: 14px;">
                {$n.name}
            </div>
            <div class="card_add flex-wrap">
                <div class="card_add_word aui-ellipsis-1">
                    {$n.address}
                </div>
            </div>
        </div>
        {/volist}
    </div>
</div>
{include file="public/foot1"}

</body>
{include file="public/footer"}
<script src="__JS__/swiper4.min.js"></script>
<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.10&key=3108d268226b46915b5faa028a004245&plugin=AMap.Geocoder"></script>

<script>
    //-------------------跳转到详情----------------------
    function godetail(hid) {
        window.location.href = '/home/Index/houseInfo?h_id='+hid;
    }
    function gobuilddetail(bid) {
        window.location.href = '/home/Build/buildInfo?b_id='+bid;
    }
    //-----------------------end------------------

    var mySwiper1 = new Swiper ('#swiper1', {
        direction: 'horizontal', // 垂直切换选项
        loop: true, // 循环模式选项
        autoplay:true,//等同于以下设置
        // 如果需要分页器
        pagination: {
            el: '.swiper-pagination',
        },

    })
    var mySwiper2 = new Swiper ('#swiper2', {
        direction: 'horizontal', // 垂直切换选项
        loop: false, // 循环模式选项
        // autoplay:true,//等同于以下设置
        slidesPerView : 4,
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
        },
    })
</script>
<script type="text/javascript">
    var drop = document.getElementById('drop');
    var tabImage = document.getElementById('tabImage');
    var tabSearch = document.getElementById('tabSearch');
    function changeSearch() {
        event.stopPropagation();
        if (drop.className.indexOf('hidden') > -1) {
            drop.classList.remove("hidden");
            tabImage.src = '__IMG__/pgup.png';
        }else {
            drop.classList.add("hidden");
            tabImage.src = '__IMG__/pgdn.png';
        }
    }
    function searchSelect(num){
        event.stopPropagation();
        if (num == 1) {
            tabSearch.innerHTML = "出租";
            drop.classList.add("hidden");
            tabImage.src = '__IMG__/pgdn.png';
        }else if (num ==2) {
            tabSearch.innerHTML = "出售";
            drop.classList.add("hidden");
            tabImage.src = '__IMG__/pgdn.png';
        }else if (num ==3) {
            tabSearch.innerHTML = "小区";
            drop.classList.add("hidden");
            tabImage.src = '__IMG__/pgdn.png';
        }
    }
    document.onclick = function(event){
        event = event || window.event;
        event.stopPropagation();
        drop.classList.add("hidden");
        tabImage.src = '__IMG__/pgdn.png';
    };
</script>
<script type="text/javascript">
    var city = '';
    var map = new AMap.Map('container', {
        resizeEnable: true
    });
    AMap.plugin('AMap.CitySearch', function () {
        var citySearch = new AMap.CitySearch()
        citySearch.getLocalCity(function (status, result) {
            if (status === 'complete' && result.info === 'OK') {
                // 查询成功，result即为当前所在城市信息
                city = result.city;
            }
            gotoSureOrSession(city);
        })
    });
    function gotoSureOrSession(city) {
        $.ajax({
            url: '/home/Base/location',
            data: 'city='+city,
            type: 'POST',
            dataType: 'JSON',
            success: function (returnData) {
                $('#location_my').text(returnData.msg)
            },
            error: function () {
                alert('服务器错误，请刷新重试！');
            }
        })
    }

</script>
<script>
    $('.searchGo').click(function () {
        var text = $('#tabSearch').text();
        var type = 1;
        if(text == '出售'){
            type = 2;
        }
        if(text == '小区'){
            type = 3;
        }
        var key = $('.input_class').val().trim();
        if(key == ''){
            $('.input_class').val('');
            alert('搜索关键字不能为空');
        }else{
            location.href='/home/Index/searchResult?type='+type+'&keyword='+key;
        }
    });
    function gotypewhere(where,content) {
        if(where == 1){
            godetail(content);
        }else if(where == 2){
            location.href='/home/Economic/index';
        }else if(where == 3){
            location.href='/home/Renovation/detail?id='+content;
        }else{
            location.href=content;
        }
    }
</script>